@import url('./variable.less');
@import url('./mixins.less');

// 全局样式
html,
body {
  height: 100%;
}

* {
  touch-action: none !important;
}

body {
  font-family: @font-family;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0px;
  color: @text-color;
  font-size: @font-size-ctent;
  background: @bg-color-grey;
}

// loading样式
.mris-mask {
  background-color: rgba(255, 253, 253, .3);
  filter: blur(2px);
  width: 100%;
  height: 100%;
}

.mris-loading {
  background-color: rgba(255, 253, 253, 0) !important;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 140px;
  height: 40px;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-20px);

  .el-loading-spinner {
    width: auto;
    background-color: #ffffff;
    padding: @spacing-col-mini @spacing-row-sm;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    position: static;

    .circular {
      width: 20px !important;
      height: 20px !important;
      margin-right: @spacing-row-mini;
    }

    .path {
      stroke: @text-color;
      stroke-width: 3;
    }

    .el-loading-text {
      color: @text-color;
    }
  }
}

// 图标
.iconfont {
  font-size: @icon-size-base;
}

// 输入框placeholder
input,
input::-webkit-input-placeholder {
  font-family: @font-family;
  font-size: @font-size-ctent;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  //width: @spacing-row-mini;
  //height: @spacing-col-sm;
}

::-webkit-scrollbar-thumb:vertical {
  background-color: @bg-color-scrollbar;
  -webkit-border-radius: @spacing-row-base;
}

::-webkit-scrollbar-thumb:horizontal {
  background-color: @bg-color-scrollbar;
  -webkit-border-radius: @spacing-row-base;
}

// 颜色
.ud-danger {
  color: @color-danger !important
}

.ud-warning {
  color: @color-warning !important
}

.ud-primary {
  color: @color-primary !important
}

.ud-success {
  color: @color-success !important
}

.ud-blue {
  color: @color-blue !important
}

.ud-info {
  color: @text-color-grey !important
}

.ud-gary {
  color: @text-color-disable !important;
}

.ud-purple {
  color: @text-color-purple !important;
}

// 可点击
.ud-pointer {
  cursor: pointer;
}

.ud-bold {
  font-weight: bold;
}

.ud-underline {
  text-decoration: underline;
}

// 正方形图例
.warn-circle {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: @color-danger;
  border-radius: 50%;
  margin-right: 2px;
  cursor: pointer;
}

.ud-gray {
  .warn-circle {
    background-color: @text-color-grey;
  }
}

.ud-primary {
  .warn-circle {
    background-color: @color-primary;
  }
}

.ud-success {
  .warn-circle {
    background-color: @color-success;
  }
}

.ud-danger {
  .warn-circle {
    background-color: @color-danger;
  }
}

.ud-warning {
  .warn-circle {
    background-color: @color-warning;
  }
}

//
.spec-btn.el-button {
  height: 16px !important;
  line-height: 16px !important;
}

.spec-btn-big.el-button {
  height: 23px !important;
  line-height: 23px !important;
}

// 抽屉编码对比
.draw-wrapper-sepc {

  // position: absolute;
  .el-drawer__header {
    position: relative;
    margin-bottom: 0;
    padding: 8px 10px;

    &:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 1px;
      background: #EBEEF5;
    }
  }

  .el-drawer__body {
    overflow-y: scroll;
  }
}


// css lib
.ov {
  overflow: visible;
}

.p10 {
  padding: @spacing-col-sm;
}

.pl10 {
  padding-left: @spacing-col-sm;
}

.pr10 {
  padding-right: @spacing-col-sm;
}

.pt0 {
  padding-top: 0;
}

.ml50 {
  margin-left: @spacing-col-sm * 5;
}

.ml10 {
  margin-left: @spacing-col-sm;
}

.mt5 {
  margin-top: @spacing-col-mini;
}

.mt10 {
  margin-top: @spacing-col-sm;
}

.mb10 {
  margin-bottom: @spacing-col-sm;
}

.mb5 {
  margin-bottom: @spacing-col-mini;
}

.rel {
  position: relative;
}

.tr {
  text-align: right;
}

.tl {
  text-align: left;
}

.tc {
  text-align: center;
}

.hpct100 {
  height: 100%;
}

.w100 {
  width: 100%;
}

.bn {
  border: none;
}

.hmin300 {
  min-height: 300px;
}

.spec-textarea {
  font-size: @font-size-ctent;
}

.f-grey {
  color: @text-color-grey;
}

.has-border {
  box-sizing: border-box;
  border: 1px solid @uni-border-color-td;
}

.spec-table-search .search-item .search-wrap .search-label {
  min-width: auto !important;
}

.ulink-table-search.spec-table-search {
  justify-content: flex-end;

  .search-item.search-extend {
    flex: none;
  }

  .search-wrap .search-content .el-input {
    width: 120px !important;
  }

  .search-wrap .search-content .has-auto-width .el-input {
    width: auto !important;
  }

  .search-wrap .search-content .el-date-editor.el-input__inner,
  .el-date-editor.el-input__inner {
    width: 250px !important;
  }
}

.is-card {
  box-sizing: border-box;
  padding: @spacing-row-sm;
  border: 1px solid @uni-border-color-td;
  border-radius: @border-radius-sm;
  position: relative;
  z-index: 100;

  &:hover {
    box-shadow: 0 @border-radius-mini @spacing-row-mini rgba(0, 0, 0, .15) !important;
  }
}

.is-card-hover {
  box-shadow: 0 @border-radius-mini * 1.5 @spacing-row-mini * 1.5 rgba(0, 0, 0, .15) !important;
}

.time-wrapper {
  position: absolute;
  right: 0;
  top: @spacing-col-sm;
  width: auto;
  margin-right: -@spacing-row-base;
}

// tip左右信息提示
.tips {
  position: relative;

  .el-alert__content {
    width: 100%;
  }

  &__inner {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
  }
}

.el-tooltip__popper.is-dark.el-tooltip__warning {
  background: @bg-color-warning;
  color: @color-warning;

  &.el-tooltip__popper[x-placement^=right] .popper__arrow,
  &.el-tooltip__popper[x-placement^=right] .popper__arrow::after {
    border-right-color: @bg-color-warning !important;
  }

  &.el-tooltip__popper[x-placement^=left] .popper__arrow,
  &.el-tooltip__popper[x-placement^=left] .popper__arrow::after {
    border-left-color: @bg-color-warning !important;
  }
}

// 其他
.ud-font-important {
  font-size: calc(@font-size-ctent + 1px);
}

.pct100 {
  height: 100%;
}

// 表单hover样式
.ud-cell-hover {
  background-color: @bg-color-hover !important
}

.el-alert.el-alert--primary {
  background: #e6f3ff;

  .el-alert__icon.el-icon-info {
    color: @color-primary;
  }

  .el-alert__title {
    font-size: calc(@font-size-base * 1.2);
    color: #575858;
  }
}

.plTableTooltip,
.elx-table--tooltip-wrapper {
  z-index: 9999 !important;
}

.label-str {
  font-size: calc(@font-size-base * 1.4);
  font-weight: 700;
  color: @text-color-tbody;
  // vertical-align: middle;
}

.img-item-warp {
  .el-dialog {
    width: auto !important;
  }

  .el-dialog__headerbtn {
    top: 5px !important;
  }

  .img-item {
    display: inline-block;
    max-width: 100%;
  }
}

.select-wrapper-spec {
  .el-select-dropdown__list {
    margin-bottom: 30px !important;
  }
}

.is-pop {
  display: none;
}

@media screen and (max-height: @media-min-height) {
  .info-wrapper.is-card {
    padding: 0px !important;
  }
}

.modal-pd-sm {
  .ant-modal-body {
    padding: @spacing-col-sm;
  }
}

.el-popover.pop-info-inner {
  max-width: 500px;
}
